import request from '@/utils/request'

// 查询云信设置列表
export function listVoiceTemplateConfig(query) {
  return request({
    url: '/voiceTemplateConfig/voiceTemplateConfig/list',
    method: 'get',
    params: query
  })
}

// 查询云信设置详细
export function getVoiceTemplateConfig(id) {
  return request({
    url: '/voiceTemplateConfig/voiceTemplateConfig/' + id,
    method: 'get'
  })
}

// 新增云信设置
export function addVoiceTemplateConfig(data) {
  return request({
    url: '/voiceTemplateConfig/voiceTemplateConfig',
    method: 'post',
    data: data
  })
}

// 修改云信设置
export function updateVoiceTemplateConfig(data) {
  return request({
    url: '/voiceTemplateConfig/voiceTemplateConfig',
    method: 'put',
    data: data
  })
}

// 删除云信设置
export function delVoiceTemplateConfig(id) {
  return request({
    url: '/voiceTemplateConfig/voiceTemplateConfig/' + id,
    method: 'delete'
  })
}
